home *** CD-ROM | disk | FTP | other *** search
XSetup plugin | 2001-04-12 | 1.6 KB | 63 lines |
- "FILE"="Xteq Systems X-Setup Plugin 6.0"
- "TYPE"="7"
- "COUNT"="3"
- "UIPATH 1"="Hardware\Printers"
- "---UIPATH 2"=""
- "NAME"="Printer Scheduler Priority"
- "VERSION"="1.07"
- "OSVERSION"="010101"
- "LANGUAGE"="VBScript"
- "TEXT 1"="Below Normal Priority"
- "TEXT 2"="Normal Priority"
- "TEXT 3"="Above Normal Priority"
- "DESCRIPTION 1"="These settings control the overall priority of the printer scheduler."
- "DESCRIPTION x"="For Normal Priority, check Box 1; For Above Normal Priority, clear Box 2; For Below Normal Priority, check Box 3."
- "AUTHOR"="Ojatex@aol.com"
- "CONTACTURL"="http://members.aol.com/ojatex/"
- "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
- "COMMENT 1"=" "
- "COMMENT 2"="Cartridge Empty --> Use a Pen."
- "COMMENT 3"="Thanks to Little Dave [sirturque@bigfoot.com] for the description bug notice!"
-
-
- sV1="HKLM\System\CurrentControlSet\Control\Print\SchedulerThreadPriority" 'DW
- sV1_Val="4294967295"
-
-
- Sub Plugin_Initialize
- s=RegReadValue(sV1)
-
- 'check for below
- if Len(s)>=1 then
- if cstr(s)=sV1_Val then SetUIElement 1,true
- end if
-
- 'check for normal priority
- if IsEmpty(s) or s=0 then SetUIElement 2,true
-
- 'check for above priority
- if s=1 then SetUIElement 3, true
- End Sub
-
- Sub Plugin_CheckData(ElementIndex)
- End Sub
-
- Sub Plugin_Apply(ElementIndex,ElementSubIndex)
-
- if GetUIElement(1)=true then
- Call RegWriteValue(sV1,sV1_Val,2)
- end if
-
- if GetUIElement(2)=true then
- Call RegWriteValue(sV1,0,2)
- end if
-
- if GetUIElement(3)=true then
- Call RegWriteValue(sV1,1,2)
- end if
-
- End Sub
-
- Sub Plugin_Terminate
- End Sub
-